package com.jichneg;


import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
class Animal
{
    public int id;
    public String name;
    public int age;
    public int weight;

    public Animal(int id, String name, int age, int weight) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.weight = weight;
    }
    //这里省略get set方法
    public void sayHello()
    {
        System.out.println("hello");
    }
    public void eat()
    {
        System.out.println("I'm eating");
    }
    public void sing()
    {
        System.out.println("sing");
    }
    public static void statics()
    {
        System.out.println("我无法被哦修改");
    }

}